package pwdencode

import (
	"crypto"
	"encoding/hex"
)

func PasswordHex(str string) string {
	h := crypto.MD5.New()
	_, _ = h.Write([]byte(str + ""))
	password := hex.EncodeToString(h.Sum(nil))
	return password
}
